﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace ActionSystem.Input
{
    /// <summary>
    /// 从这里获取按键的值
    /// 
    /// 用户可以继承，返回按键值给玩家角色
    /// AI可以返回按键
    /// </summary>
    public interface IInputCache
    {
        /// <summary>
        /// 检测按键按下
        /// </summary>
        /// <param name="keyID">按键</param>
        /// <returns></returns>
        bool KeyDown(int keyID);
        /// <summary>
        /// 摇杆推动
        /// </summary>
        /// <param name="keyID"></param>
        /// <returns></returns>
        Vector2 Stick(int keyID);        
    }
}

